window.onload = function(){
    var ret = document.getElementById('return');
    var del = document.getElementById('delete');
    ret.onclick = function(){
        history.back();
    };

    del.onclick = function(){
        var mychar = confirm('你确定要删除此短信？');
        if(mychar){
            location.href="?action=delete&id="+this.name;
        }
    };
};